package com.qingsong.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author qingsong
 */
@Schema(description = "权限添加DTO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PermissionInsertDTO implements Serializable {

    @NotEmpty(message = "权限名称不能为空!")
    @Schema(description = "权限名称")
    private String title;

    @NotEmpty(message = "跳转地址不能为空!")
    @Schema(description = "跳转地址")
    private String url;

    @NotEmpty(message = "权限图标不能为空!")
    private String icon;

    /*@NotEmpty(message = "上级权限不能为空!")*/
    private Long pid;

    @Schema(description = "权限描述")
    private String info;

}
